package com.sch.hospital.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sch.hospital.Mapper.DoctorworkMapper;
import com.sch.hospital.domain.Doctorwork;
import com.sch.hospital.service.IDoctorworkService;

/**
 * 医生工作安排Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
@Service
public class DoctorworkServiceImpl implements IDoctorworkService 
{
    @Autowired
    private DoctorworkMapper doctorworkMapper;

    /**
     * 查询医生工作安排
     * 
     * @param id 医生工作安排主键
     * @return 医生工作安排
     */
    @Override
    public Doctorwork selectDoctorworkById(Long id)
    {
        return doctorworkMapper.selectDoctorworkById(id);
    }

    /**
     * 查询医生工作安排列表
     * 
     * @param doctorwork 医生工作安排
     * @return 医生工作安排
     */
    @Override
    public List<Doctorwork> selectDoctorworkList(Doctorwork doctorwork)
    {
        return doctorworkMapper.selectDoctorworkList(doctorwork);
    }

    /**
     * 新增医生工作安排
     * 
     * @param doctorwork 医生工作安排
     * @return 结果
     */
    @Override
    public int insertDoctorwork(Doctorwork doctorwork)
    {
        return doctorworkMapper.insertDoctorwork(doctorwork);
    }

    /**
     * 修改医生工作安排
     * 
     * @param doctorwork 医生工作安排
     * @return 结果
     */
    @Override
    public int updateDoctorwork(Doctorwork doctorwork)
    {
        return doctorworkMapper.updateDoctorwork(doctorwork);
    }

    /**
     * 批量删除医生工作安排
     * 
     * @param ids 需要删除的医生工作安排主键
     * @return 结果
     */
    @Override
    public int deleteDoctorworkByIds(Long[] ids)
    {
        return doctorworkMapper.deleteDoctorworkByIds(ids);
    }

    /**
     * 删除医生工作安排信息
     * 
     * @param id 医生工作安排主键
     * @return 结果
     */
    @Override
    public int deleteDoctorworkById(Long id)
    {
        return doctorworkMapper.deleteDoctorworkById(id);
    }
}
